package cn.tedu.trading_platform.pojo.dto.adminDTO;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class AdminAddParam {
    @NotBlank(message = "管理员账号不能为空")
    private String adminname;

    @NotBlank(message = "密码不能为空")
    @Pattern(
            regexp  = "^(?=.*[A-Z])(?=.*[a-z])(?=.*\\d)[A-Za-z\\d]{10,}$",
            message = "密码需至少10位且包含大小写字母和数字"
    )
    private String password;
}

